<template>
  <div class="test-container">
    <Pager :current="current" :total="total" :visibleNumber="visibleNumber" @pageChange="handlePageChange($event)" />
  </div>
</template>

<script>
// import Pager from "./components/Pager";
import Pager from "./";
export default {
  components: {
    Pager,
  },
  data() {
    return {
      current: 1,
      total: 200,
      visibleNumber: 10,
    }
  },
  methods: {
    handlePageChange(newPage) {
      this.current = newPage;
      console.log("加载当前页数据");
    }
  }
};
</script>

<style>
</style>
